
<div class="userheader">
	<div class="avatar_w"><img src="<?=$headicon?>"></div>
	<div class="userh_main">
		<div class="info1">
			<h1><?=$username?></h1>
			<span class="info">
				<em>注册时间：<?=$userinfo['created']?></em>
				<?php if($this->user_login->get_user_id() == $uid):?> | <em><a href="<?=site_url('user/profile')?>">编辑个人资料</a></em><?php endif;?>
			</span>
			<?php if($this->user_login->get_user_id() == $uid):?>
			<div class="tools">
				<a class="mail" href="<?=site_url('user/profile')?>">编辑个人资料</a>
			</div>
			<?php endif;?>
		</div>
		<p class="sign">“<?=$skilled?>”</p>
	</div>
	<div class="user_userinfo">
		<ul class="clearfix">
			<li class="li1"><a href="#"><span>关注</span><strong><?=$user_guanzhu_num?></strong></a></li>
			<li class="li2"><a href="#"><span>粉丝</span><strong><?=$user_fensi_num?></strong></a></li>
			<li class="li3"><a href="#"><span>发布菜谱</span><strong><?=$user_caipu_num?></strong></a></li>
			<li class="li4"><a href="#"><span></span><strong class="grey"></strong></a></li>
		</ul>
	</div>
</div>
<div class="user_nav">
	<ul>
		<li class="<?php if ($menu_type == ''){echo 'current';}?>" ><a href="<?=site_url('/u/'.$uid)?>" >动态</a></li>
		<li class="<?php if ($menu_type == 'recipe'){echo 'current';}?>"><a href="<?=site_url('/u/'.$uid.'/recipe')?>" >菜谱</a></li>
		<li class="<?php if ($menu_type == 'caidan'){echo 'current';}?>"><a href="<?=site_url('/u/'.$uid.'/caidan')?>" >菜单</a></li>
		<li class="<?php if ($menu_type == 'fav'){echo 'current';}?>"><a href="<?=site_url('/u/'.$uid.'/fav')?>" >收藏</a></li>
	</ul>
</div>